package com.hyl.servlet.impl;

import com.hyl.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * UserServlet
 *
 * @author hyl
 * @date 2025-06-16
 */
public class UserServlet {

    @RequestMapping(value="/user/login")
    public void login(String name,String password){
        System.out.println("UserServlet的login方法执行了");
    }
    @RequestMapping(value="/user/reg")
    public void reg(){
        System.out.println("UserServlet的reg方法执行了");
    }
    @RequestMapping(value="/user/list")
    public void list(){
        System.out.println("UserServlet的list方法执行了");
    }


    public void login(HttpServletRequest request, HttpServletResponse response){
        String username = request.getParameter("username");
        String password = request.getParameter("password");
    }
}


